package com.glory.wxmemsicpda.utils;

/**
 * Description: 结果集泛型类
 * Data：2019/7/2 14:19
 * Author YangT
 */
public class ResultSet<T> {
    public int status;
    public String msg;
    public T data;

    /**
     * 默认构造方法
     */
    public ResultSet() {

    }

    /**
     * 带参数构造方法
     * @param status 状态码:0表示成功
     * @param msg 异常消息
     * @param data 返回数据
     */
    public ResultSet(int status, String msg, T data) {
        this.status = status;
        this.msg = msg;
        this.data = data;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
